/**  
* @Title: BookReturnServiceImpl.java  
* @Package com.ssm.demo.service.impl.bookreturn  
* @Description: TODO(用一句话描述该文件做什么)  
* @author jing Lei 
* @date 2018年12月31日  
* @version V1.0  
*/  

package com.ssm.demo.service.impl.bookreturn;

import java.util.List;
import javax.annotation.PostConstruct;
import javax.annotation.Resource;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;
import com.ssm.demo.dao.bookreturn.IBookReturnDao;
import com.ssm.demo.model.BookReturn;
import com.ssm.demo.service.bookreturn.IBookReturnService;
import com.ssm.demo.service.impl.BaseServiceImpl;

/**  
* @ClassName: BookReturnServiceImpl  
* @Description: TODO(这里用一句话描述这个类的作用)  
* @author jing Lei  
* @date 2018年12月31日  
*    
*/
@Service
@Repository
public class BookReturnServiceImpl extends BaseServiceImpl<BookReturn> implements IBookReturnService{
	@Resource
	private IBookReturnDao ibookReturnDao;

	/**
	 * 
	 * 基础方法实现
	 */
	@PostConstruct
	private void postconstruct() {
		baseIdo = ibookReturnDao;
	}

	/**
	 * 
	 * <p>
	 * Title: findByStudentId
	 * </p>
	 * <p>
	 * Description:
	 * </p>
	 * 
	 * @param studentId
	 *            学生id
	 * @return
	 * @see com.ssm.demo.dao.bookborrow.IBookBorrowDao#findByStudentId(int)
	 */
	@Override
	public List<BookReturn> findByStudentId(int studentId) {
		return ibookReturnDao.findByStudentId(studentId);
	}

	/**
	 * 
	 * <p>
	 * Title: findByBookId
	 * </p>
	 * <p>
	 * Description:
	 * </p>
	 * 
	 * @param bookId
	 *            书籍id
	 * @return
	 * @see com.ssm.demo.dao.bookborrow.IBookBorrowDao#findByBookId(int)
	 */
	@Override
	public List<BookReturn>  findByBookId(int bookId) {
		return ibookReturnDao.findByBookId(bookId);
	}
	/**
	 * 
	* <p>Title: findByMangerId</p>  
	* <p>Description: </p>  
	* @param mangerId
	* @return  
	* @see com.ssm.demo.dao.bookreturn.IBookReturnDao#findByMangerId(int)
	 */
	@Override
	public List<BookReturn>  findByMangerId(int mangerId) {
		return ibookReturnDao.findByMangerId(mangerId);
	}
}
